<?php


namespace app\api\controller;


use app\common\controller\Api;
use app\common\model\Marea;

class Address extends Api
{
    protected $noNeedLogin = ['*'];
    protected $noNeedRight = ['*'];
    /**
     * 获取省市区地址
     */
    /**
     * 地址接口
     */
    public function getCitys()
    {
        $data=Marea::cityCache_all();
        $this->success('',$data);
    }
    public function getArea()
    {
        $data=Marea::areaCache_all();
        $this->success('',$data);
    }
}